#!/bin/bash
# -*- encoding: utf8 -*-
#add by zhangdi at 2017-04-14 09:57:44 

mysqlconfig = {
    "online":{
        'ctripo':{
            "read":{
                "host": "106.75.51.220",
                "user": "bwProgram",
                "passwd": "mysql_Q!2wE#4rT%6y",
                "db": "ctriprawdata",
                "charset": "utf8",
                "port": 4042
            }
        },
        'ctripn':{
            "read":{
                "host": "106.75.51.220",
                "user": "bwProgram",
                "passwd": "mysql_Q!2wE#4rT%6y",
                "db": "jwcrawlerctripdb",
                "charset": "utf8",
                "port": 4042
            }
        },
        # 'order':{
        #     "write":{
        #         "host": "10.10.133.34",
        #         "user": "bwrevieworde_wr",
        #         "passwd": "YHmJkNzQ1MmJNDU21",
        #         "db": "bw_review_order",
        #         "charset": "utf8",
        #         "port": 3306
        #     },
        # },
        'hive':{
            "write":{
                "host": "10.6.5.137",
                "user": "join_web",
                "passwd": "mysql_joinwisdom",
                "db": "bw_review_order",
                "charset": "utf8",
                "port": 3306
            },
        },
    },
    "ontest":{
        'ctripo':{
            "read":{
                "host": "106.75.51.220",
                "user": "bwProgram",
                "passwd": "mysql_Q!2wE#4rT%6y",
                "db": "ctriprawdata",
                "charset": "utf8",
                "port": 4042
            }
        },
        'ctripn':{
            "read":{
                "host": "106.75.51.220",
                "user": "bwProgram",
                "passwd": "mysql_Q!2wE#4rT%6y",
                "db": "jwcrawlerctripdb",
                "charset": "utf8",
                "port": 4042
            }
        },
        'order':{
            "write":{
                "host": "106.75.51.131",
                "user": "root",
                "passwd": "uvhxqaMjMPjhJZw3",
                "db": "bw_review_order",
                "charset": "utf8",
                "port": 4040
            },
        },
        'hive':{
            "write":{
                "host": "106.75.51.131",
                "user": "root",
                "passwd": "uvhxqaMjMPjhJZw3",
                "db": "bw_review_hive",
                "charset": "utf8",
                "port": 4040
            },
        },
    }
}